import { ref } from "vue";
import cropperInitFun from "../types/cropperInitFun";
export default function cropperInitFun():cropperInitFun{
    const previews = ref<object>({})
    const uploadLoading = ref<boolean>(false)
    const imgLoad = function (){
        uploadLoading.value = false
    }
    const realTime = function(data:object){
        previews.value = data
    }
    return {
        previews,
        uploadLoading,
        imgLoad,
        realTime
    }
}